package com.maylann.ratiocheater.model;

/**
 * Created with IntelliJ IDEA.
 * by Maylann
 */
public enum Encoding {

    UTF8("UTF-8")
    ;

    private String value;

    private Encoding(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public static Encoding getByValue(String value) {
        for (Encoding current : Encoding.values()) {
            if (current.value.equalsIgnoreCase(value)) {
                return current;
            }
        }
        return null;
    }
}
